package com.esri.core.map;

import java.io.Serializable;
import java.util.Arrays;

/* loaded from: classes.dex */
public class ImageServiceParameters implements Serializable {
    private static final long serialVersionUID = 1;
    IMAGE_FORMAT a;
    PIXEL_TYPE b;
    String c;
    NoDataInterpretation d;
    RSP e;
    int f;
    int[] g;
    MosaicRule h;
    RasterFunction i;

    /* loaded from: classes.dex */
    public enum PIXEL_TYPE {
        C128,
        C64,
        F32,
        F64,
        S16,
        S32,
        S8,
        U1,
        U16,
        U2,
        U32,
        U4,
        U8,
        UNKNOWN
    }

    /* loaded from: classes.dex */
    public enum RSP {
        RSP_BILINEAR_INTERPOLATION("RSP_BilinearInterpolation"),
        RSP_CUBIC_CONVOLUTION("RSP_CubicConvolution"),
        RSP_MAJORITY("RSP_Majority"),
        RSP_Nearest_Neighbor("RSP_NearestNeighbor");
        
        private final String a;

        RSP(String str) {
            this.a = str;
        }

        @Override // java.lang.Enum
        public String toString() {
            return this.a;
        }

        public static RSP fromString(String str) {
            RSP[] values;
            if (str != null) {
                for (RSP rsp : values()) {
                    if (str.equals(rsp.a)) {
                        return rsp;
                    }
                }
            }
            return null;
        }
    }

    /* loaded from: classes.dex */
    public enum IMAGE_FORMAT {
        JPG_PNG("jpgpng"),
        PNG("png"),
        PNG8("png8"),
        PNG24("png24"),
        JPG("jpg"),
        BMP("bmp"),
        GIF("gif"),
        TIFF("tiff"),
        PNG32("png32");
        
        private final String a;

        IMAGE_FORMAT(String str) {
            this.a = str;
        }

        @Override // java.lang.Enum
        public String toString() {
            return this.a;
        }

        public static IMAGE_FORMAT fromString(String str) {
            IMAGE_FORMAT[] values;
            if (str == null) {
                return null;
            }
            for (IMAGE_FORMAT image_format : values()) {
                if (str.equals(image_format.a)) {
                    return image_format;
                }
            }
            return null;
        }
    }

    /* loaded from: classes.dex */
    public enum NoDataInterpretation {
        NO_DATA_MATCH_ANY("esriNoDataMatchAny"),
        NO_DATA_MATCH_ALL("esriNoDataMatchAll");
        
        private final String a;

        NoDataInterpretation(String str) {
            this.a = str;
        }

        public static NoDataInterpretation fromString(String str) {
            NoDataInterpretation[] values;
            if (str != null) {
                for (NoDataInterpretation noDataInterpretation : values()) {
                    if (str.equals(noDataInterpretation.a)) {
                        return noDataInterpretation;
                    }
                }
            }
            return null;
        }

        @Override // java.lang.Enum
        public String toString() {
            return this.a;
        }
    }

    public ImageServiceParameters() {
        this.a = null;
        this.f = -1;
    }

    public ImageServiceParameters(ImageServiceParameters imageServiceParameters) {
        this.a = null;
        this.f = -1;
        if (imageServiceParameters != null) {
            this.a = imageServiceParameters.a;
            this.b = imageServiceParameters.b;
            this.c = imageServiceParameters.c;
            this.d = imageServiceParameters.d;
            this.e = imageServiceParameters.e;
            this.f = imageServiceParameters.f;
            int[] iArr = imageServiceParameters.g;
            if (iArr == null) {
                this.g = null;
            } else {
                int[] iArr2 = new int[iArr.length];
                this.g = iArr2;
                System.arraycopy(imageServiceParameters.g, 0, iArr2, 0, iArr2.length);
            }
            MosaicRule mosaicRule = imageServiceParameters.h;
            if (mosaicRule == null) {
                this.h = null;
            } else {
                this.h = new MosaicRule(mosaicRule);
            }
            RasterFunction rasterFunction = imageServiceParameters.i;
            if (rasterFunction == null) {
                this.i = null;
            } else {
                this.i = new RasterFunction(rasterFunction);
            }
        }
    }

    public IMAGE_FORMAT getFormat() {
        return this.a;
    }

    public void setFormat(IMAGE_FORMAT image_format) {
        this.a = image_format;
    }

    public PIXEL_TYPE getPixelType() {
        return this.b;
    }

    public void setPixelType(PIXEL_TYPE pixel_type) {
        this.b = pixel_type;
    }

    public String getNoData() {
        return this.c;
    }

    public void setNoData(String str) {
        this.c = str;
    }

    public NoDataInterpretation getNoDataInterpretation() {
        return this.d;
    }

    public void setNoDataInterpretation(NoDataInterpretation noDataInterpretation) {
        this.d = noDataInterpretation;
    }

    public RSP getInterpolation() {
        return this.e;
    }

    public void setInterpolation(RSP rsp) {
        this.e = rsp;
    }

    public int getCompressionQuality() {
        return this.f;
    }

    public void setCompressionQuality(int i) {
        this.f = i;
    }

    public int[] getBandIds() {
        return this.g;
    }

    public void setBandIds(int[] iArr) {
        this.g = iArr;
    }

    public MosaicRule getMosaicRule() {
        return this.h;
    }

    public void setMosaicRule(MosaicRule mosaicRule) {
        this.h = mosaicRule;
    }

    public RasterFunction getRenderingRule() {
        return this.i;
    }

    public void setRenderingRule(RasterFunction rasterFunction) {
        this.i = rasterFunction;
    }

    public int hashCode() {
        int hashCode = (((Arrays.hashCode(this.g) + 31) * 31) + this.f) * 31;
        IMAGE_FORMAT image_format = this.a;
        int hashCode2 = (hashCode + (image_format == null ? 0 : image_format.hashCode())) * 31;
        RSP rsp = this.e;
        int hashCode3 = (hashCode2 + (rsp == null ? 0 : rsp.hashCode())) * 31;
        MosaicRule mosaicRule = this.h;
        int hashCode4 = (hashCode3 + (mosaicRule == null ? 0 : mosaicRule.hashCode())) * 31;
        String str = this.c;
        int hashCode5 = (hashCode4 + (str == null ? 0 : str.hashCode())) * 31;
        PIXEL_TYPE pixel_type = this.b;
        int hashCode6 = (hashCode5 + (pixel_type == null ? 0 : pixel_type.hashCode())) * 31;
        RasterFunction rasterFunction = this.i;
        int hashCode7 = (hashCode6 + (rasterFunction == null ? 0 : rasterFunction.hashCode())) * 31;
        NoDataInterpretation noDataInterpretation = this.d;
        return hashCode7 + (noDataInterpretation != null ? noDataInterpretation.hashCode() : 0);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && getClass() == obj.getClass()) {
            ImageServiceParameters imageServiceParameters = (ImageServiceParameters) obj;
            if (Arrays.equals(this.g, imageServiceParameters.g) && this.f == imageServiceParameters.f && this.a == imageServiceParameters.a && this.e == imageServiceParameters.e) {
                MosaicRule mosaicRule = this.h;
                if (mosaicRule == null) {
                    if (imageServiceParameters.h != null) {
                        return false;
                    }
                } else if (!mosaicRule.equals(imageServiceParameters.h)) {
                    return false;
                }
                if (this.c == imageServiceParameters.c && this.d == imageServiceParameters.d && this.b == imageServiceParameters.b) {
                    RasterFunction rasterFunction = this.i;
                    if (rasterFunction == null) {
                        if (imageServiceParameters.i != null) {
                            return false;
                        }
                    } else if (!rasterFunction.equals(imageServiceParameters.i)) {
                        return false;
                    }
                    return true;
                }
                return false;
            }
            return false;
        }
        return false;
    }

    public String toString() {
        return "ImageServiceParameters [format=" + this.a + ", pixelType=" + this.b + ", noData=" + this.c + ", noDataInterpretation=" + this.d + ", interpolation=" + this.e + ", compressionQuality=" + this.f + ", bandIds=" + Arrays.toString(this.g) + ", mosaicRule=" + this.h + ", renderingRule=" + this.i + "]";
    }
}
